package classDemo;

public class Main {
    public static void main(String[] args) {
        Classroom classroom = new Classroom("Class One");

        // 注册学生
        classroom.register(new Student("Alice", 15, "Female", 85.0, 90.0, 95.0));
        classroom.register(new Student("Bob", 16, "Male", 90.0, 85.0, 95.0));
        classroom.register(new Student("Charlie", 15, "Male", 95.0, 90.0, 85.0));

        // 打印排序后的学生信息
        classroom.printStudentsSortedByScore();
    }
}